//
//  FRQDeviceImageViewController.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/10/23.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "FRQDeviceImageViewController.h"
#import "DeviceImageViews.h"
@interface FRQDeviceImageViewController ()
@property (nonatomic,strong) DeviceImageViews *deviceImageView;
@end

@implementation FRQDeviceImageViewController

-(DeviceImageViews *)deviceImageView{
    if (nil==_deviceImageView) {
        _deviceImageView=skXibView(@"DeviceImageViews");
//        _deviceImageView.backgroundColor = [UIColor redColor];
        [self.view addSubview:_deviceImageView];
        [_deviceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.mas_equalTo(APP.statusBarHeight);
            make.bottom.mas_equalTo(self.mas_bottomLayoutGuide);
            make.right.left.mas_equalTo(0);
        }];
    }
    @weakify(self)
    [[_deviceImageView.btnBack rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
        @strongify(self)
        [self.navigationController popToRootViewControllerAnimated:YES];
    }];
    return _deviceImageView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self deviceImageView];
    // Do any additional setup after loading the view.

}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
